package com.etc.traval.bizimpl;

import java.util.List;

import com.etc.traval.biz.DiarycomBiz;
import com.etc.traval.dao.DiarycomDao;
import com.etc.traval.daoimpl.DiarycomDaoImpl;
import com.etc.travel.entity.Diary;
import com.etc.travel.entity.Diarycom;
import com.etc.travel.entity.User;

public class DiarycomBizImpl implements DiarycomBiz{

	DiarycomDao dao = new DiarycomDaoImpl();
	
	@Override
	public List<Diarycom> queryDiarycomByUser(User user,int page,int size) {
		return dao.queryDiarycomByUser(user, page, size);
	}

	@Override
	public Diarycom queryDiarycomById(int id) {
		return dao.queryDiarycomById(id);
	}

	@Override
	public List<Diarycom> queryDiarycomByDiary(Diary diary,int page,int size) {
		return dao.queryDiarycomByDiary(diary, page, size);
	}

	@Override
	public boolean addDiarycom(Diarycom diarycom) {
		return dao.addDiarycom(diarycom);
	}

	@Override
	public boolean deleteDiartcomById(int id) {
		return dao.deleteDiartcomById(id);
	}

	@Override
	public int queryCountByDiary(Diary diary) {
		return dao.queryCountByDiary(diary);
	}

	@Override
	public List<Diary> queryAllDiaryByCom(int size, int page) {
		// TODO Auto-generated method stub
		return dao.queryAllDiaryByCom(size, page);
	}

	@Override
	public List<User> queryUserByCom(int size, int page) {
		// TODO Auto-generated method stub
		return dao.queryUserByCom(size, page);
	}

	@Override
	public List<Diarycom> queryDiarycomByDiaryId(int id, int siez, int page) {
		// TODO Auto-generated method stub
		return dao.queryDiarycomByDiaryId(id, siez, page);
	}

}
